-- GENERATED SPELL FOR [Twilight Marauder Morna] --


function spell0_15541(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(16856,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15541', 5259, 1)
end

function spell1_15541(pUnit, Event) --@Piercing Howl,Self--
pUnit:FullCastSpellOnTarget(23600,pUnit)
pUnit:RegisterEvent('Sorts_15541', 6253, 1)
end

function spell2_15541(pUnit, Event) --@Sunder Armor,n/a--
pUnit:FullCastSpellOnTarget(15572,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15541', 30286, 1)
end

function Sorts_15541(pUnit, Event)
local choix_sorts_15541 = math.random(0, 2)
if choix_sorts_15541 == 0 then
pUnit:RegisterEvent('spell0_15541', 1, 1)
end
if choix_sorts_15541 == 1 then
pUnit:RegisterEvent('spell1_15541', 1, 1)
end
if choix_sorts_15541 == 2 then
pUnit:RegisterEvent('spell2_15541', 1, 1)
end
end

function mob15541_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15541', math.random(1500, 3000), 1)
end

function mob15541_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15541_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15541_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15541, 1, 'mob15541_Action')
RegisterUnitEvent(15541, 2, 'mob15541_Leave')
RegisterUnitEvent(15541, 3, 'mob15541_Kill')
RegisterUnitEvent(15541, 4, 'mob15541_Die')
